<template>
  <div class="retroaction">
    <div class="mask"></div>
    <div class="lottery-alert">
      <span class="close-icon" @click="btnClick"
        ><van-icon color="white" name="cross"
      /></span>
      <!-- <div class="imgs">
          <img src="../assets/img/acti.png" alt="" />
        </div> -->
      <a :href="val.link_title" ><img :src="val.upimg" alt="" /></a>
      <!-- <template>
        <div class="btnsave" @click="saveClick">知道了</div>
      </template> -->
    </div>

    <!-- <img src="https://qiniu.longyue8.com/images/4/2021/07/rz7dUAdvZbe75tPAVA22UVTtazbTET.png" alt="">
      <span>暂无数据</span> -->
  </div>
</template>

<script>
import { Icon } from "vant";
export default {
  components: {
    [Icon.name]: Icon,
  },
  props: ["val"],
  data() {
    return {
        val: {}
    };
  },
  mounted() {
    console.log(this.val, 'this.val---------------');
  },
  methods: {
    btnClick() {
      this.$emit('shutDown')
    },
    // toCaseView() {
    //     window.location.href = `//${location.hostname}/addons/youmi_activitys/public/mobile/index.html`;
    // },
  },
};
</script>

<style lang="scss" scoped>
.retroaction {
  .mask {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    overflow: hidden;
    z-index: 222;
    top: 0;
    left: 0;
  }
  .lottery-alert {
    max-width: 40rem;
    text-align: center;
    z-index: 10000;
    border-radius: 1rem;
    background: #fff;
    padding: 3rem 2rem;
    position: fixed;
    left: 0;
    right: 0;
    margin: auto 4rem;
    top: 50%;
    transform: translateY(-50%);
    .close-icon {
      position: fixed;
      width: 2.4rem;
      height: 2.4rem;
      right: 0.7rem;
      top: 0.7rem;
      border-radius: 1.2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 3002;
      background: var(--btn_color);
    }
    // .imgs {
    //   width: 80px;
    //   height: 80px;
    //   margin-top: -55px;
    //   img {
    //     width: 100%;
    //     height: 100%;
    //   }
    // }
    //     .h2 {
    //     font-weight: normal;
    //     color: #d92b2f;
    //     font-size: 1.5rem;
    //     padding-top: 1.5rem;
    //   }
    .p {
      width: 12rem;
      height: 12rem;
      color: #666;
      font-size: 1.6rem;
      padding-top: 0.5rem;
    }

    .btnsave {
      margin-top: 3rem;
      border-radius: 3rem;
      box-shadow: none;
      height: 4rem;
      cursor: pointer;
      line-height: 4rem;
      color: #fff;
      margin-top: 1.2rem;
      background: var(--btn_color);
      font-size: 1.4rem;
      padding: 0 8rem;
      margin-top: 2.5rem;
    }
  }
}
</style>